import request from '@/utils/request'

// 查询端口财务台账列表
export function listFinancePort(query) {
  return request({
    url: '/bill/financePort/list',
    method: 'get',
    params: query
  })
}

export function matching() {
  return request({
    url: '/bill/financePort/matching',
    method: 'get',
  })
}

// 查询端口财务台账详细
export function getFinancePort(id) {
  return request({
    url: '/bill/financePort/' + id,
    method: 'get'
  })
}

// 新增端口财务台账
export function addFinancePort(data) {
  return request({
    url: '/bill/financePort',
    method: 'post',
    data: data
  })
}

// 修改端口财务台账
export function updateFinancePort(data) {
  return request({
    url: '/bill/financePort',
    method: 'put',
    data: data
  })
}

// 删除端口财务台账
export function delFinancePort(id) {
  return request({
    url: '/bill/financePort/' + id,
    method: 'delete'
  })
}
